package com.xjj.order.controller;

import com.xjj.order.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

/**
 * @author zhanghejie
 * @date 2020/7/20 15:56
 */
@RestController
@RefreshScope
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test1")
    public String test1() {
        return testService.test1("test1"+new Date());
    }

    @GetMapping("/test2")
    public String test2() {
        return testService.test2("test2"+new Date());
    }

}
